package com.yunji.cabinet.vo;

import com.yunji.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.List;

@Data
public class TemplateVO {
    @ApiModelProperty(value = "模板ID")
    private Long templateId;

    @ApiModelProperty(value = "所属ID")
    private Long belongId;

    @Excel(name = "模板名称")
    @ApiModelProperty(value = "模板名称", required = true)
    @Length(message = "模板名称不能超过{max}个字符", max = 10)
    private String templateName;

    @Excel(name = "货柜类型CODE")
    @ApiModelProperty(value = "货柜类型CODE", required = true)
    private String typeCode;

    @Excel(name = "模板商品信息")
    @ApiModelProperty(value = "模板商品信息", required = true)
    private List<TemplateCellVO> list;
}
